home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / utilities / pu619.dms / pu619.adf / Utilities / TASKE.LHA / Source / defs.h < prev    next >
C/C++ Source or Header  |  1993-08-26  |  2KB  |  63 lines

  1. /*
  2.  * Copyright (c) 1993 Michael D. Bayne.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms, with or without modification, are permitted provided that
  6.  * the following conditions are met:
  7.  *
  8.  * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
  9.  *    following disclaimer.
  10.  *
  11.  * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
  12.  *    following disclaimer in the documentation and/or other materials provided with the distribution.
  13.  *
  14.  * 3. All advertising materials mentioning features or use of this software must display the following
  15.  *    acknowledgement:
  16.  *
  17.  *       This product includes software developed by Michael D. Bayne.
  18.  *
  19.  * 4. My name may not be used to endorse or promote products derived from this software without specific prior
  20.  *    written permission.
  21.  *
  22.  * THIS SOFTWARE IS PROVIDED BY MICHAEL D. BAYNE ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
  23.  * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  24.  * IN NO EVENT SHALL MICHAEL D. BAYNE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  25.  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  26.  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  27.  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  28.  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29.  */
  30.  
  31. #include <clib/alib_protos.h>
  32. #include <clib/dos_protos.h>
  33. #include <clib/exec_protos.h>
  34. #include <clib/gadtools_protos.h>
  35. #include <clib/reqtools_protos.h>
  36. #include <clib/intuition_protos.h>
  37. #include <clib/utility_protos.h>
  38.  
  39. ULONG    SetupCX( void );
  40. void    ShutdownCX( void );
  41. ULONG    handleCxMess( void );
  42. void    exit( int );
  43. LONG    TaskExists( ULONG );
  44. void    popScreen( int );
  45. void    sendSigAbrt( struct TaskNode * );
  46. void    getScreens( struct List * );
  47. void    getTasks( struct List * );
  48.  
  49. #define SIG_BREAK       SIGBREAKF_CTRL_C
  50. #define SIG_WINDOW      ( 1l << TaskEWnd->UserPort->mp_SigBit )
  51. #define SCREEN        2
  52. #define    WINDOW        1
  53. #define NONE        0
  54. #define EVT_CX_KILL    1
  55.  
  56. struct TaskNode {
  57.     struct    Node tn_Node;
  58.     ULONG    tn_TaskAddress;
  59.     ULONG    tn_SigAlloc;
  60.     ULONG    tn_SigWait;
  61.     UBYTE    tn_Name[32];
  62. };
  63.